#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	FILE* pf = fopen("test.txt", "r");

	if (pf == NULL)
	{
		perror("fopen");
		return 1;
	}

	char arr[10] = {};
	fgets(arr,10,pf);
	printf("%s\n", arr);

	fclose(pf);
	pf = NULL;
	return 0;
}